package com.example.shixun.service.impl;

import com.example.shixun.dao.CourseChapterLessonDao;
import com.example.shixun.pojo.CourseChapterLesson;
import com.example.shixun.service.CourseChapterLessonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author XDW
 * @Version 1.0
 * @date 2023/6/24 18:03
 */
@Service
public class CourseChapterLessonServiceImpl implements CourseChapterLessonService {
    @Resource
    private CourseChapterLessonDao courseChapterLessonDao;

    @Override
    public Integer saveCourseChapterLesson(CourseChapterLesson courseChapterLesson) {
        return courseChapterLessonDao.saveCourseChapterLesson(courseChapterLesson);
    }

    @Override
    public Integer deleteCourseChapterLessonById(int id) {
        return courseChapterLessonDao.deleteCourseChapterLessonById(id);
    }

    @Override
    public CourseChapterLesson selectCourseChapterLessonById(int id) {
        return courseChapterLessonDao.selectCourseChapterLessonById(id);
    }

    @Override
    public Integer updateCourseChapterLesson(CourseChapterLesson courseChapterLesson) {
        return courseChapterLessonDao.updateCourseChapterLesson(courseChapterLesson);
    }

    @Override
    public List<CourseChapterLesson> findByCourseId(Integer id) {
        return courseChapterLessonDao.findByCourseId(id);
    }
}
